/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import java.sql.SQLException;
import regraDeNegocio.RNFornecedor;

/**
 *
 * @author Gean
 */
public class BDFornecedor {
    
    public void insertBD(RNFornecedor fornec) throws SQLException{
        Conexao c = new Conexao();
        c.insert("INSERT INTO fornecedor (cnpj, razaosocial, ie, email, endereco, telefone, nomeFantasia, tipofornec) VALUES "
                + "('"+fornec.getCNPJ()+"','"+fornec.getRazaoSocial()+"','"+fornec.getIe()+"','"+fornec.getEmail()+"','"+fornec.getEndereco()+
                "','"+fornec.getTelefone()+"','"+fornec.getNomeFantasia()+"','"+fornec.getTipo()+"')");
    }
  }
